﻿using UnityEngine;
using System.Collections;

public class GenericSendMessage : MonoBehaviour
{
	public GameObject m_Target;
	public string m_FunctionName;

	public void OnSendMessage()
	{
		if(m_Target && m_FunctionName != "")
		{
			m_Target.SendMessage(m_FunctionName, this, SendMessageOptions.DontRequireReceiver);
		}
	}
}
